home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 11 / Cream of the Crop 11-1.iso / utility / pwg_key.zip / PWMAKE.WCX (.txt) < prev    next >
Wildcat! WCX  |  1995-12-05  |  3KB  |  136 lines

  1. '! Decompiled with wccNosy version 4.20f (freeware)
  2. '! Input File: in.wcx  3189 bytes  11/10/122  07:45:14pm
  3. '! Code Segment Size  :1201 bytes
  4. '! Data Segment Size  :4506 bytes
  5. '! String Segment Size:1988 bytes
  6. '! Compiled with WCC version 4.11
  7.  
  8.       Type Type26
  9.         s0 As String*4
  10.         s4 As String*9
  11.       End Type
  12.  
  13.       Dim i4463 As Integer
  14.       Dim i4465 As Integer
  15.       Dim i4467 As Integer
  16.       Dim w4469 As Word
  17.       Dim w4471 As Word
  18.       Dim s4475 As String
  19.       Dim t26_4479 As Type26
  20.       Dim s4492 As String
  21.       Dim s4496 As String
  22.       Dim s4500 As String
  23.       Dim i4504 As Integer
  24.  
  25.       Dim l65530_ As Long
  26.       Dim i65534_ As Integer
  27.  
  28.       i4467 = 0
  29.       w4469 = 0
  30.       w4471 = 0
  31.       i4463 = FreeFile
  32.       i4465 = FreeFile
  33.       s4492 = ".\"
  34.       i4504 = 0
  35.       Cls 
  36.       Print "                       M*E*G*A - Key"
  37.       Print "                 A PassWord Generation Kit"
  38.       Print "               Copyright ⌐1995, Stephen Gose."
  39.       Print "                    All Rights Reserved."
  40.       Print ""
  41.       s4496 = s4492 + "MEGA.KEY"
  42.       If Not Exists("MegaSrc.Key") Then
  43.         Open s4496 For Input As 1
  44.   187   Do Until EOF(1)
  45.           Input #1, s4475
  46.         Loop
  47.   211   If s4475 = "UNREGISTERED" Then
  48.           Print ""
  49.           Print "   To register this program, it will cost you the price of a"
  50.           Print "one minute long-distance (?) call (assumming that you ARE ;)."
  51.           Print "   Just call MegaComm(sm) BBS at (540) 829-Big1 and fill out"
  52.           Print "the online-registration form. It's simple, easy, and demonstates"
  53.           Print "how this program can facilitate your registration process."
  54.           Print "   It's totally automated....and will download your *.Key while"
  55.           Print "you're on-line."
  56.           Print ""
  57.           Print "   All of the PUBLIC DOMAIN Source code is already included"
  58.           Print "in this kit.  However, if you would like the source code for"
  59.           Print "THIS PROGRAM--in WCCode and QuickBasic, and COMPLETE User"
  60.           Print "Documentation then:"
  61.           Print "     1) Enter our On-Line Sales Catalog and order those items."
  62.           Print " OR  2) Fill out the Order form enclosed in this package."
  63.           Print ""
  64.           Print "Thanks for sampling our program....See ya on MegaComm(sm) soon."
  65.         Else
  66.   387     If s4475 = "REGISTERED" Then
  67.             Print "Thanks for Supporting the ShareWare Concept."
  68.             Print ""
  69.             Print "   If you would like to have the source code for THIS PROGRAM"
  70.             Print "in WCCode and QuickBasic and COMPLETE User Documentation, then:"
  71.             Print ""
  72.             Print "   1) Go to MegaComm(sm) On-Line Shopping Mall and place your"
  73.             Print "      order......OR"
  74.             Print "   2) Fill out the enclosed Order form and Mail to"
  75.             Print ""
  76.             Print "            Treesahran Industries"
  77.             Print "        ATTN: MegaComm(sm) BBS Sales"
  78.             Print "             336 Lafayette Ridge"
  79.             Print "           Culpeper, VA 22701-3963"
  80.           Else
  81.   527       Print "Your control file is violated . . ."
  82.             Print "Please call MegaComm(sm) BBS (540) 829-Big1"
  83.             Print "to obtain a valid registration key."
  84.             Print ""
  85.             Print "Remember! a simple call registers this program..."
  86.             Print ""
  87.             Print "If you'd like the source code for THIS program"
  88.             Print "please mail the Order form or Order from our"
  89.             Print "On-line Shopping Mall."
  90.             WaitEnter 
  91.             End 
  92.           End If
  93.         End If
  94.       End If
  95.   612 i4504 = InputNumber("How many passwords would you like to make? (max = 999) ", 1, 999)
  96.       If i4504 <= 0 Then
  97.         i4504 = 1
  98.       Else
  99.   657   If i4504 > 999 Then
  100.           i4504 = 999
  101.         End If
  102.       End If
  103.   681
  104.   705 For i4467 = 1 To i4504 Step 1
  105.         Shell "RP.COM > PWTemp.txt", ""
  106.         Reset 
  107.         s4496 = s4492 + "PWTemp.txt"
  108.         Open s4496 For Input As i4463
  109.         Input #i4463, t26_4479.s4
  110.         Print "Creating New Password."
  111.         Delay 0.5
  112.         Reset 
  113.         If i4467 < 10 Then
  114.           t26_4479.s0 = "00" + Str(i4467) + ","
  115.         End If
  116.   887   If i4467 > 9 And i4467 < 100 Then
  117.           t26_4479.s0 = "0" + Str(i4467) + ","
  118.         End If
  119.   941   If i4467 > 99 Then
  120.           t26_4479.s0 = Str(i4467) + ","
  121.         End If
  122.   977   Print Trim(t26_4479.s0) + ": " + Trim(t26_4479.s4)
  123.         s4500 = s4492 + "PWord.dbf"
  124.         Open s4500 For Append As i4465
  125.         Print #i4465, t26_4479.s0;
  126.         Print #i4465, t26_4479.s4
  127.         Print "Writing " + t26_4479.s0 + ": " + t26_4479.s4
  128.         Delay 0.5
  129.         Reset 
  130.       Next
  131.  1151 Reset 
  132.       Print "PWord.DBF created."
  133.       Print "and placed in the current directory."
  134.       Delay 2
  135.       End 
  136.